<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <title></title>
    <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/styles.css">
    <link rel="stylesheet" href="../css/media.css">
    <script src="../lib/jquery/jquery-2.2.4.min.js"></script>
    <script src="../lib/jquery.localize.js" type="text/javascript"></script>
    <script src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <script src="../js/language_cookie_other.js" type="text/javascript"></script>
    <script src="../js/switchLan.js" type="text/javascript"></script>
</head>
<body style="background: #FCFCFC">
<div class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#coll3">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="../index.html" class="navbar-brand">
                <img src="../images/logo_header_other@2x.png"/>
            </a>
        </div>
        <div class="collapse navbar-collapse" id="coll3">
            <ul class="nav navbar-nav navbar-right">
                <li class="white-paper">
                    <a href="javascript:;" data-localize="nav.menu1">白皮书</a>
                    <ul>
                        <li><a target="_blank" href="../whitePaper/idk-whitePaper-zh.pdf"
                               data-localize="nav.downloadCH">简体版下载</a>
                        </li>
                        <li><a target="_blank" href="../whitePaper/idk-whitePaper-zht.pdf"
                               data-localize="nav.downloadCH1">繁体版下载</a>
                        </li>
                        <li><a target="_blank" href="../whitePaper/idk-whitePaper-en.pdf"
                               data-localize="nav.downloadEH">英文版下载</a>
                        </li>
                    </ul>
                </li>
                <li><a href="../html/solution.html" data-localize="nav.menu2">解决方案</a></li>
                <li><a href="../html/team1.html" data-localize="nav.menu7">团队</a></li>
                <li class="active"><a href="../html/news.html" data-localize="nav.menu3">新闻</a></li>
                <li><a href="../html/qa.html" data-localize="nav.menu4">常见问题</a></li>
                <li><a href="../html/contractUs.html" data-localize="nav.menu5">联系我们</a></li>
                <li class="language">
                    <img src="../images/icon_flag_china@2x.png" data-localize="nav.icon_other"/><a href="#"
                                                                                                   data-localize="nav.menu6">简体中文</a>
                    <ul>
                        <li class="zh"><img src="../images/icon_flag_china@2x.png"/><a>简体中文</a></li>
                        <li class="en"><img src="../images/icon_flag_eng@2x.png"/><a>English</a></li>
                        <li class="jp"><img src="../images/icon_flag_Jap@2x.png"/><a>日本語</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="news-detail container head-top">
    <div class="row">
        <div class="col-md-8">
            <div class="content-left">
                <h5>与天美饮品集团有限公司达成合作</h5>
                <h6>2018年06月18日 14:05 <span>天美</span></h6>
                <div class="rich-text">
                    <div class="right col-sm-6 col-xs-12">
                        <p>
                            <a class="facebook"></a>
                            <a class="twitter"></a>
                            <a class="wechat"></a>
                            <a class="telegram"></a>
                            <a target="_blank" href="https://github.com/InfinityDimension" class="github"></a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="content-right">
                <div class="tit">相关报道</div>
                <ul>
                    <li><a href="">与博君农业控股有限公司达合作</a></li>
                    <li><a href="">与博君农业控股有限公司达合作</a></li>
                    <li><a href="">与博君农业控股有限公司达合作</a></li>
                </ul>
            </div>
        </div>
    </div>

</div>

<div class="footer">
    <div class="contact container">
        <div class="row">
            <div class="left col-sm-6 col-xs-12">
                <p data-localize="contact.phone">电话：+61 412 927 796</p>
                <p data-localize="contact.email">邮箱：webmaster@jaz-intl.com</p>
                <p data-localize="contact.adress">地址：9A/139 Minjungbal Drive Tweed Heads South NSW 2486 Australia</p>
            </div>
            <div class="right col-sm-6 col-xs-12">
                <p>
                    <a class="facebook"></a>
                    <a class="twitter"></a>
                    <a class="wechat"></a>
                    <a class="telegram"></a>
                    <a target="_blank" href="https://github.com/InfinityDimension" class="github"></a>
                </p>
            </div>
        </div>
    </div>
    <div class="divide"></div>
    <div class="copyright container">
        <div class="logoBottom"><img src="../images/logo_bottom@2x.png"></div>
        <p>COPYRIGHT (©) 2018 IDK</p>
    </div>
</div>
</body>
<script>
    $(document).ready(function () {
        var newsDetail = $('.news-detail');
        var api = 'http://www.indchain.io:3000/newsInterface/details?id=';

        function getQueryString() {
            var qs = location.search.substr(1), // 获取url中"?"符后的字串
                args = {}, // 保存参数数据的对象
                items = qs.length ? qs.split("&") : [], // 取得每一个参数项,
                item = null,
                len = items.length;

            for (var i = 0; i < len; i++) {
                item = items[i].split("=");
                var name = decodeURIComponent(item[0]),
                    value = decodeURIComponent(item[1]);
                if (name) {
                    args[name] = value;
                }
            }
            return args;
        }

        var qs = getQueryString();
        var id = qs['id'];
        $.ajax({
            type: "get",
            url: api + id,
            async: false,
            dataType: 'JSON',
            success: function (res) {
                console.log(res);
                newsDetail.find('h5').html(res.title);
                document.title = res.title;
                newsDetail.find('h6').html(res.realtime);
                newsDetail.find('.rich-text').html(res.text)
            }, error: function (res) {
                console.log(res);
            }
        })
    })
</script>
</html>